package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.system.entity.SysSms;

/**
 * @Description: 短信
 * @Author: jeecg-boot
 * @Date:   2021-02-04
 * @Version: V1.0
 */
public interface SysSmsMapper extends BaseMapper<SysSms> {
    @Select("select sms_price from sys_tenant where id = #{tenantId}")
    String queryTenantMount(@Param("tenantId") String tenantId);


    IPage<SysSms> findPage(Page<SysSms> page, @Param("sysSms") SysSms sysSms);
    @SqlParser(filter = true)
    void insertMessage(SysSms sysSms);
}
